import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'

export default defineUniPages({
  globalStyle: {
    navigationStyle: 'default',
    navigationBarTitleText: '民宿',
    navigationBarBackgroundColor: '#ffffff',
    navigationBarTextStyle: 'black',
    backgroundColor: '#FFFFFF',
  },
  easycom: {
    autoscan: true,
    custom: {
      // '^fg-(.*)': '@/components/fg-$1.vue',
      '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
      '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
        'z-paging/components/z-paging$1/z-paging$1.vue',
    },
  },
  tabBar: {
    custom: true,
    color: '#8a8f99',
    selectedColor: '#070b1a',
    backgroundColor: '#ffffff',
    borderStyle: 'black',
    height: '50px',
    fontSize: '10px',
    iconWidth: '24px',
    spacing: '3px',
    list: [
      {
        pagePath: 'pages/home/index/index',
        text: '首页',
        iconPath: '/static/tabbar/home.png',
        selectedIconPath: '/static/tabbar/home-active.png',
      },
      {
        pagePath: 'pages/collect/index',
        text: '收藏',
        iconPath: '/static/tabbar/collect.png',
        selectedIconPath: '/static/tabbar/collect-active.png',
      },
      {
        pagePath: 'pages/order/index',
        text: '订单',
        iconPath: '/static/tabbar/order.png',
        selectedIconPath: '/static/tabbar/order-active.png',
      },
      {
        pagePath: 'pages/my/index',
        text: '我的',
        iconPath: '/static/tabbar/my.png',
        selectedIconPath: '/static/tabbar/my-active.png',
      },
    ],
  },
})
